#pragma once
#include<string>
#include"Mesh.h"
#include"Shader.h"
#include<fstream>
#include<iostream>
#include<vector>
#include<map>
#include"Model.h"
using namespace std;
struct face {
	int position;
	int textureCoord;
	int normal;
};
class myModel
{
public:
	myModel(const std::string& path);

	vector<Mesh>mesh;
	vector<face>facePoint;
	vector<Vertex>pointCoord;
	vector<unsigned int>indecise;

	void Draw(Shader* shader);
	bool jumping = false;
	float jump_ftime = 0.0f;
	float jump_distance(float time, float v, float g = 10.0f);
private:
	//unsigned int LoadTexture(string path);
	string directory;
	map<string, vector<string>>material;
	void manageMaterial(string path);
};

